#ifndef __LED_H
#define __LED_H

#include "esp_log.h"
#include "driver/gpio.h"
// goio
#define LED_WARM 18
#define LED_COLE 19
#define LED_RED 3
#define LED_GREEN 4
#define LED_BLUE 5

#define GPIO_OUTPUT_PIN_SEL ((1ULL << LED_COLE) | (1ULL << LED_WARM) | (1ULL << LED_RED) | (1ULL << LED_GREEN) | (1ULL << LED_BLUE))
#define GPIO_INPUT_IO_0 6
#define GPIO_INPUT_IO_1 7
#define GPIO_INPUT_IO_2 8
#define GPIO_INPUT_IO_3 9
#define GPIO_INPUT_PIN_SEL ((1ULL << GPIO_INPUT_IO_0) | (1ULL << GPIO_INPUT_IO_1) | (1ULL << GPIO_INPUT_IO_2) | (1ULL << GPIO_INPUT_IO_3))
#define ESP_INTR_FLAG_DEFAULT 0
#define BUTTON0_PREEDDOWN 0


//对应wifi板的状态灯
#define statusLED 8


void myled_init(void);
void led_on(gpio_num_t);
void led_off(gpio_num_t);

int led_control_flag;

void wifitcpstatus();
#endif